//
//  UIFont+JFScale.h
//  JFBase
//
//  Created by Alan Wang on 2019/3/8.
//  Copyright © 2019 Alan Wang. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define JFScaleFont(size)  [UIFont fontOfScaleSize:size]
#define JFScaleBoldFont(size)  [UIFont boldFontOfScaleSize:size]
#define JFScaleFontWithName(name,fontsize)  [UIFont fontOfScaleSizeWithName:name size:fontsize]
#define JFScalePingFangFont(fontsize)  [UIFont fontOfScaleSizeWithName:@"PingFangSC-Regular" size:fontsize]
#define JFPingFangFont(fontsize)  [UIFont fontWithName:@"PingFangSC-Medium" size:fontsize]
#define JFThinPingFangFont(fontsize) [UIFont fontOfScaleSizeWithName:@"PingFangSC-Thin" size:fontsize]
#define JFSemiboldPingFangFont(fontsize) [UIFont fontOfScaleSizeWithName:@"PingFangSC-Semibold" size:fontsize]

@interface UIFont (JFScale)
//
+ (UIFont *)fontOfScaleSize:(CGFloat)fontSize;
+ (UIFont *)boldFontOfScaleSize:(CGFloat)fontSize;
+ (nullable UIFont *)fontOfScaleSizeWithName:(NSString *)fontName size:(CGFloat)fontSize;

@end

NS_ASSUME_NONNULL_END
